package com.jcl.recruit.resume.service;

import com.jcl.recruit.resume.mapper.ResumeOrigMapper;
import com.jcl.recruit.resume.model.ResumeOrig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author 刘明新
 * @date 2018/9/3 下午4:12
 */
@Service
public class ResumeOrigService implements ResumeOrigMapper {

    @Autowired
    private ResumeOrigMapper resumeOrigMapper;

    @Override
    public List<ResumeOrig> selectResumeOrigsBySource(String source) {
        return resumeOrigMapper.selectResumeOrigsBySource(source);
    }

    @Override
    public int batchUpdate(List<Integer> list) {
        return resumeOrigMapper.batchUpdate(list);
    }

    public ResumeOrigMapper getResumeOrigMapper() {
        return resumeOrigMapper;
    }

    public void setResumeOrigMapper(ResumeOrigMapper resumeOrigMapper) {
        this.resumeOrigMapper = resumeOrigMapper;
    }

    @Override
    public List<Map<String, String>> selectPrimarykeyByDatesAndSources() {
        return resumeOrigMapper.selectPrimarykeyByDatesAndSources();
    }

    @Override
    public int insertSelective(ResumeOrig record) {
        return resumeOrigMapper.insertSelective(record);
    }
}
